﻿using System;
using System.Globalization;
using System.Windows.Data;

namespace ImageConverter.Converters
{
    public class IsCompletedToTextConverter : IValueConverter
    {
        #region IValueConverter Members

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            bool bValue = (bool)value;

            if (bValue)
                return "Exit";

            return "Cancel";
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }

        #endregion
    }
}
